package com.trickytriads.events
{
	import flash.events.Event;

	/**
	 * Event dispatched when making a request for all games of a specific player.
	 */
	public class GetAllGamesEvent extends Event
	{
		public static const GETALLGAMES_REQUEST:String = "getAllGamesRequest";
		public static const GETALLGAMES_DONE:String = "getAllGamesDone";
		
		// List of games, set when we're dealing with a "getAllGamesDone" type
		[ArrayElementType("com.trickytriads.model.GameData")]
		public var _gameList:Array;
		
		// Player ID or game ID to search for
		public var _player_id:Number;
		public var _game_id:Number; 				
						
		public function GetAllGamesEvent(type:String, player_id:Number=-1, game_id:Number=-1, gameList:Array=null)
		{
			super(type, false, false);
			this._gameList = gameList;
			this._player_id = player_id;
			this._game_id = game_id;
		}
		
	}
}